package com.jaychen.eureka.registry;

import java.util.concurrent.ExecutionException;

/**
 * 服务管理
 *
 * @Author Jay Chen
 * @Date 2020/10/23 13:17
 */
public interface LeaseManager<T> {

    /**
     * 注册
     *
     * @param r             - T to register
     * @param leaseDuration 续约时间
     */
    void register(T r, Long leaseDuration) throws ExecutionException;
}
